import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/voice_record_detail_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/voice_record_detail_entity.g.dart';

@JsonSerializable()
class VoiceRecordDetailEntity {
	String? msg;
	int? code;
	VoiceRecordDetailData? data;

	VoiceRecordDetailEntity();

	factory VoiceRecordDetailEntity.fromJson(Map<String, dynamic> json) => $VoiceRecordDetailEntityFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordDetailEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class VoiceRecordDetailData {
	String? createTime;
	VoiceRecordDetailDataParams? params;
	int? id;
	int? deviceId;
	int? userId;
	int? voiceType;
	String? voicePath;
	String? voiceContent;
	String? voiceTransliterate;
	int? aiPlatform;
	int? voiceDuration;
	int? status;
	int? readStatus;

	VoiceRecordDetailData();

	factory VoiceRecordDetailData.fromJson(Map<String, dynamic> json) => $VoiceRecordDetailDataFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordDetailDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class VoiceRecordDetailDataParams {


	VoiceRecordDetailDataParams();

	factory VoiceRecordDetailDataParams.fromJson(Map<String, dynamic> json) => $VoiceRecordDetailDataParamsFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordDetailDataParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}